﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="Contactus.aspx.cs" Inherits="Phoenix.Contactus"  Culture="auto"  UICulture="Auto"%>
<%@ OutputCache Duration="600" VaryByParam="None" Location="Client" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="main" runat="server">

    <div class="contact">
<div class="contact_title"><h2><asp:Label ID="f_contact" runat="server" Text=""></asp:Label></h2></div>
<p class="cont_name"><asp:Label ID="lb_namect" runat="server" Text=""></asp:Label></p>
<p><asp:Label ID="lb_address" runat="server" Text=""></asp:Label></p>
<p>Tel: <asp:Label ID="lb_phone" runat="server"></asp:Label> Fax: <asp:Label ID="lb_fax" runat="server"></asp:Label></p>
<p>Email: <asp:Label ID="lb_mail" runat="server"></asp:Label></p>
<p> <a href="ymsgr:sendIM?baoyen_dl"><img src="http://opi.yahoo.com/online?u=baoyen_dl&m=g&t=2" border="0" alt="" /></a><br />
<script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
<a href="skype:baoyen_dl?call"><img src="http://mystatus.skype.com/balloon/baoyen_dl" style="border: none;" width="150" height="60" alt="My status" /></a>
</p>   


<table class="tb_contact">
<tbody>
    <tr>
        <td class="tb_name"><asp:Label ID="lb_fname" runat="server" Text=""></asp:Label></td>
        <td><asp:TextBox ID="txt_fullname" runat="server" maxlength="99"></asp:TextBox></td>
       
    </tr>
    <tr>
        <td class="tb_name"><asp:Label ID="lb_email" runat="server" Text=""></asp:Label></td>
        <td><asp:TextBox ID="txt_email" runat="server" maxlength="99"></asp:TextBox></td>
    </tr>
    <tr>
        <td class="tb_name"><asp:Label ID="lb_subject" runat="server" Text=""></asp:Label></td>
        <td><asp:TextBox ID="txt_subject" runat="server" CssClass="sub" maxlength="199"></asp:TextBox></td>
    </tr>
    <tr>
        <td class="tb_name"><asp:Label ID="lb_cont" runat="server" Text=""></asp:Label></td>
        <td><asp:TextBox ID="txt_content" runat="server"  TextMode="MultiLine" cols="23" rows="7" maxlength="500"></asp:TextBox></td>
    </tr>
    <tr>
        <td class="tb_name"></td>
        <td><asp:Image ID="imgCaptcha" runat="server" Style="height: 20px; margin-right: -5px;" /><asp:ImageButton ID="imbReload" runat="server" Width="22px" ImageUrl="Content/Frontend/img/icon-reload.png" OnClick="imbReload_Click" /></td>
    </tr>
    <tr>
        <td class="tb_name"><asp:Label ID="lb_captcha" runat="server" Text=""></asp:Label></td>
        <td><asp:TextBox ID="txt_captcha" runat="server" maxlength="10" style="width: 90px;"></asp:TextBox><asp:Label ID="lblMessage" runat="server" Text="Label" style="color:#E00000;font-weight:bold;margin-left: 10px;"></asp:Label></td>
    </tr>
    <tr>
        <td class="tb_name"></td>
        <td><asp:Button ID="bt_submit" runat="server" Text="" onclick="bt_submit_Click" OnClientClick="return validate_Contact()"  CssClass="bt_submit"/></td>
    </tr>
</tbody>
</table>

</div>
<script type="text/javascript">
    function validate_Contact() {

        var FullName = document.getElementById("<%= txt_fullname.ClientID %>").value;
        if (FullName == null || FullName == "") {
            alert("Please enter full name");
            document.getElementById("<%= txt_fullname.ClientID %>").focus();
            return false;
        }
        var EmailA = document.getElementById("<%= txt_email.ClientID %>").value;
        if (EmailA == null || EmailA == "") {
            alert("Please enter email");
            document.getElementById("<%= txt_email.ClientID %>").focus();
            return false;
        }
        if (!EmailA.match("^[a-z]+[a-z0-9_.-]*[@][a-z]+[.][a-z]+[.]?[a-z]*$")) {
            alert("Email format xxx@xxx.xxx");
            document.getElementById("<%= txt_email.ClientID %>").focus();
            return false;
        }
        var Title = document.getElementById("<%= txt_subject.ClientID %>").value;
        if (Title == null || Title == "") {
            alert("Please enter subject");
            document.getElementById("<%= txt_subject.ClientID %>").focus();
            return false;
        }
        var Content = document.getElementById("<%= txt_content.ClientID %>").value;
        if (Content == null || Content == "") {
            alert("Please enter content");
            document.getElementById("<%= txt_content.ClientID %>").focus();
            return false;
        }
        var Captcha = document.getElementById("<%= txt_captcha.ClientID %>").value;
        if (Captcha == null || Captcha == "") {
            alert("Please enter captcha");
            document.getElementById("<%= txt_captcha.ClientID %>").focus();
            return false;
        }
        return true;
    }

</script>
</asp:Content>
